import { EStatus } from './utils';

type TCreateDetials = {
  time: Date;
  createBy: string;
};

type TInProgressDetials = {
  time: Date;
  modifyBy: string;
};
type TResolvedDetials = {
  time: Date;
  modifyBy: string;
};
type TReadyDetials = {
  time: Date;
  modifyBy: string;
};
type TClosedDetials = {
  time: Date;
  modifyBy: string;
};
export type TJobListItem = {
  _id?: string;
  planName: string;
  createDetials: TCreateDetials;
  inProgressDetials: TInProgressDetials;
  resolvedDetials: TResolvedDetials;
  readyDetials: TReadyDetials;
  closedDetials: TClosedDetials;
  status: EStatus;
  note: string;
  assigneeTo: string;
  assigneeOpenId: string;
  openId: string;
};

export enum EGender {
  Male,
  Female
}

export type TUserLink = {
  _id: string;
  userGroup: [];
};

export type TUserInfo = {
  avatarUrl: string;
  gender: EGender;
  nickName: string;
  signUpDate: Date;
  permission: boolean;
  openId: string;
  userLink: string;
};

export type TAssigneeUserInfo = {
  avatarUrl: string;
  nickName: string;
  openId: string;
};
